<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<p><a href="<?=$_SERVER["PHP_SELF"];?>?page=listroletypes">List of Role Types</a></p>

<form method="post" action="<?=$_SERVER["PHP_SELF"];?>">
<table border="0" cellpadding="0" cellspacing="0" class="app_table">
<tr class="app_row">
    <td>
	<b>Name</b>
    </td>
    <td>
	<input type="text" name="name" value="<?=$aInfo["name"];?>" id="app_textinput" size="30">
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Optional StringID</b>
    </td>
    <td>
	<input type="text" name="stringID" value="<?=$aInfo["stringID"];?>" id="app_textinput" size="30">
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Description</b>
    </td>
    <td>
	<textarea cols="40" rows="4" name="description" id="app_textarea"><?=$aInfo["description"];?></textarea>
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Max Allowed Per RoleType (0 == infinite)</b>
    </td>
    <td>
	<select name="maxAllowed" size="1" id="app_select">
	<?
	for ($i=0; $i<100; $i++)
	{
	    if ($i==$aInfo["maxAllowed"])
	    {
		$s=" selected";
	    }
	    else
	    {
		$s="";
	    }
	    
	    ?>
	    <option value="<?=$i;?>"<?=$s;?>><?=$i;?></option>
	    <?
	}
	?>
	
	</select>
    </td>
</tr>
<tr class="app_row">
    <td colspan="2">
	<input type="hidden" name="nTypeID" value="<?=$aInfo["ID"];?>">
	<input type="hidden" name="page" value="setroletype">
	<input type="submit" name="submit" value="Submit" id="app_submit">
    </td>
</tr>
</table>
</form>


